<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let arr = [1, 2, 3, 4, 5]
        let [a, b, c] = arr
        console.log(a, b, c)

        let obj = {
            name: "xiaoT",
            age: 18
        }
        let {name:n, age:ag} = obj
        console.log(n, ag)

        let fun1 = a => console.log(a);
        fun1("hh")

        let fun2 = (a, b) => console.log(a + b)
        fun2(2, 3)

        console.log(`string test author is ${n}`);

        let fun3 = ({age}) => console.log(age);
        fun3(obj)
        
    </script>
</body>
</html>